package com.dy.org.domain;

import com.dy.basic.domain.BaseDomain;
import com.dy.system.domain.Role;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.tomcat.jni.User;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Employee extends BaseDomain {

    private String username;
    private String phone;
    private String email;
    // 盐值
    private String salt;
    private String password;
    private Integer age;
    private Long state;
    // 部门id
    private Integer departmentId;
    private Long logininfoId;
    private Long shopId;

    // 部门名称和id
    private Department department;

    // 儿子字段
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Employee> Children = new ArrayList<>();

    // 所属角色
    private List<Long> roles;


}
